package rachauto.presentation.bizdelegate;

import java.util.List;

import rachauto.dto.CandidatDto;
import rachauto.exceptions.RachAutoException;
import rachauto.metier.services.pub.CandidatServices;

public class CandidatBizDelegate {

	private CandidatServices candidatServices;
	
	public void ajouterCandidat(CandidatDto candidat) throws RachAutoException {
		 candidatServices.ajouterCandidat(candidat);
		
	}
	
	public List<CandidatDto> rechercherCandidats() throws InterruptedException, RachAutoException {
		return candidatServices.rechercherListAllCandidats();
	}
	
	/**
	 * @return the candidatServices
	 */
	public CandidatServices getCandidatServices() {
		return candidatServices;
	}

	/**
	 * @param candidatServices the candidatServices to set
	 */
	public void setCandidatServices(CandidatServices candidatServices) {
		this.candidatServices = candidatServices;
	}


	
}
